package inter.config;

/**
 * 自定义请求状态码
 * @author Max
 * @date 2016/10/24.
 */
public enum ResultStatus {
    SUCCESS("0000", "成功"),
    FAILURE("0004", "失败"),
    USERNAME_OR_PASSWORD_ERROR("0001", "用户名或密码错误"),
    USER_NOT_FOUND("0002", "用户不存在"),
    USER_NOT_LOGIN("0003", "用户未登录");

    /**
     * 返回码
     */
    private String returncode;

    /**
     * 返回结果描述
     */
    private String returnmsg;

    ResultStatus(String returncode, String returnmsg) {
        this.returncode = returncode;
        this.returnmsg = returnmsg;
    }

	public String getReturncode() {
		return returncode;
	}

	public void setReturncode(String returncode) {
		this.returncode = returncode;
	}

	public String getReturnmsg() {
		return returnmsg;
	}

	public void setReturnmsg(String returnmsg) {
		this.returnmsg = returnmsg;
	}
}
